package com.warehouse.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class CustomerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private int offset;

    public CustomerExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(int offset) {
        this.offset = offset;
    }

    public int getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCuntomNumIsNull() {
            addCriterion("cuntom_num is null");
            return (Criteria) this;
        }

        public Criteria andCuntomNumIsNotNull() {
            addCriterion("cuntom_num is not null");
            return (Criteria) this;
        }

        public Criteria andCuntomNumEqualTo(String value) {
            addCriterion("cuntom_num =", value, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumNotEqualTo(String value) {
            addCriterion("cuntom_num <>", value, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumGreaterThan(String value) {
            addCriterion("cuntom_num >", value, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumGreaterThanOrEqualTo(String value) {
            addCriterion("cuntom_num >=", value, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumLessThan(String value) {
            addCriterion("cuntom_num <", value, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumLessThanOrEqualTo(String value) {
            addCriterion("cuntom_num <=", value, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumLike(String value) {
            addCriterion("cuntom_num like", value, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumNotLike(String value) {
            addCriterion("cuntom_num not like", value, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumIn(List<String> values) {
            addCriterion("cuntom_num in", values, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumNotIn(List<String> values) {
            addCriterion("cuntom_num not in", values, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumBetween(String value1, String value2) {
            addCriterion("cuntom_num between", value1, value2, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCuntomNumNotBetween(String value1, String value2) {
            addCriterion("cuntom_num not between", value1, value2, "cuntomNum");
            return (Criteria) this;
        }

        public Criteria andCustomNameIsNull() {
            addCriterion("custom_name is null");
            return (Criteria) this;
        }

        public Criteria andCustomNameIsNotNull() {
            addCriterion("custom_name is not null");
            return (Criteria) this;
        }

        public Criteria andCustomNameEqualTo(String value) {
            addCriterion("custom_name =", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameNotEqualTo(String value) {
            addCriterion("custom_name <>", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameGreaterThan(String value) {
            addCriterion("custom_name >", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameGreaterThanOrEqualTo(String value) {
            addCriterion("custom_name >=", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameLessThan(String value) {
            addCriterion("custom_name <", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameLessThanOrEqualTo(String value) {
            addCriterion("custom_name <=", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameLike(String value) {
            addCriterion("custom_name like", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameNotLike(String value) {
            addCriterion("custom_name not like", value, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameIn(List<String> values) {
            addCriterion("custom_name in", values, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameNotIn(List<String> values) {
            addCriterion("custom_name not in", values, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameBetween(String value1, String value2) {
            addCriterion("custom_name between", value1, value2, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomNameNotBetween(String value1, String value2) {
            addCriterion("custom_name not between", value1, value2, "customName");
            return (Criteria) this;
        }

        public Criteria andCustomAddresIsNull() {
            addCriterion("custom_addres is null");
            return (Criteria) this;
        }

        public Criteria andCustomAddresIsNotNull() {
            addCriterion("custom_addres is not null");
            return (Criteria) this;
        }

        public Criteria andCustomAddresEqualTo(String value) {
            addCriterion("custom_addres =", value, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresNotEqualTo(String value) {
            addCriterion("custom_addres <>", value, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresGreaterThan(String value) {
            addCriterion("custom_addres >", value, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresGreaterThanOrEqualTo(String value) {
            addCriterion("custom_addres >=", value, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresLessThan(String value) {
            addCriterion("custom_addres <", value, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresLessThanOrEqualTo(String value) {
            addCriterion("custom_addres <=", value, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresLike(String value) {
            addCriterion("custom_addres like", value, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresNotLike(String value) {
            addCriterion("custom_addres not like", value, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresIn(List<String> values) {
            addCriterion("custom_addres in", values, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresNotIn(List<String> values) {
            addCriterion("custom_addres not in", values, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresBetween(String value1, String value2) {
            addCriterion("custom_addres between", value1, value2, "customAddres");
            return (Criteria) this;
        }

        public Criteria andCustomAddresNotBetween(String value1, String value2) {
            addCriterion("custom_addres not between", value1, value2, "customAddres");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNull() {
            addCriterion("phone is null");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNotNull() {
            addCriterion("phone is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneEqualTo(String value) {
            addCriterion("phone =", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotEqualTo(String value) {
            addCriterion("phone <>", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThan(String value) {
            addCriterion("phone >", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("phone >=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThan(String value) {
            addCriterion("phone <", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThanOrEqualTo(String value) {
            addCriterion("phone <=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLike(String value) {
            addCriterion("phone like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotLike(String value) {
            addCriterion("phone not like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneIn(List<String> values) {
            addCriterion("phone in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotIn(List<String> values) {
            addCriterion("phone not in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneBetween(String value1, String value2) {
            addCriterion("phone between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotBetween(String value1, String value2) {
            addCriterion("phone not between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andFoxIsNull() {
            addCriterion("fox is null");
            return (Criteria) this;
        }

        public Criteria andFoxIsNotNull() {
            addCriterion("fox is not null");
            return (Criteria) this;
        }

        public Criteria andFoxEqualTo(String value) {
            addCriterion("fox =", value, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxNotEqualTo(String value) {
            addCriterion("fox <>", value, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxGreaterThan(String value) {
            addCriterion("fox >", value, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxGreaterThanOrEqualTo(String value) {
            addCriterion("fox >=", value, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxLessThan(String value) {
            addCriterion("fox <", value, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxLessThanOrEqualTo(String value) {
            addCriterion("fox <=", value, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxLike(String value) {
            addCriterion("fox like", value, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxNotLike(String value) {
            addCriterion("fox not like", value, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxIn(List<String> values) {
            addCriterion("fox in", values, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxNotIn(List<String> values) {
            addCriterion("fox not in", values, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxBetween(String value1, String value2) {
            addCriterion("fox between", value1, value2, "fox");
            return (Criteria) this;
        }

        public Criteria andFoxNotBetween(String value1, String value2) {
            addCriterion("fox not between", value1, value2, "fox");
            return (Criteria) this;
        }

        public Criteria andEmailIsNull() {
            addCriterion("email is null");
            return (Criteria) this;
        }

        public Criteria andEmailIsNotNull() {
            addCriterion("email is not null");
            return (Criteria) this;
        }

        public Criteria andEmailEqualTo(String value) {
            addCriterion("email =", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotEqualTo(String value) {
            addCriterion("email <>", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailGreaterThan(String value) {
            addCriterion("email >", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailGreaterThanOrEqualTo(String value) {
            addCriterion("email >=", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailLessThan(String value) {
            addCriterion("email <", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailLessThanOrEqualTo(String value) {
            addCriterion("email <=", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailLike(String value) {
            addCriterion("email like", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotLike(String value) {
            addCriterion("email not like", value, "email");
            return (Criteria) this;
        }

        public Criteria andEmailIn(List<String> values) {
            addCriterion("email in", values, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotIn(List<String> values) {
            addCriterion("email not in", values, "email");
            return (Criteria) this;
        }

        public Criteria andEmailBetween(String value1, String value2) {
            addCriterion("email between", value1, value2, "email");
            return (Criteria) this;
        }

        public Criteria andEmailNotBetween(String value1, String value2) {
            addCriterion("email not between", value1, value2, "email");
            return (Criteria) this;
        }

        public Criteria andContectIsNull() {
            addCriterion("contect is null");
            return (Criteria) this;
        }

        public Criteria andContectIsNotNull() {
            addCriterion("contect is not null");
            return (Criteria) this;
        }

        public Criteria andContectEqualTo(String value) {
            addCriterion("contect =", value, "contect");
            return (Criteria) this;
        }

        public Criteria andContectNotEqualTo(String value) {
            addCriterion("contect <>", value, "contect");
            return (Criteria) this;
        }

        public Criteria andContectGreaterThan(String value) {
            addCriterion("contect >", value, "contect");
            return (Criteria) this;
        }

        public Criteria andContectGreaterThanOrEqualTo(String value) {
            addCriterion("contect >=", value, "contect");
            return (Criteria) this;
        }

        public Criteria andContectLessThan(String value) {
            addCriterion("contect <", value, "contect");
            return (Criteria) this;
        }

        public Criteria andContectLessThanOrEqualTo(String value) {
            addCriterion("contect <=", value, "contect");
            return (Criteria) this;
        }

        public Criteria andContectLike(String value) {
            addCriterion("contect like", value, "contect");
            return (Criteria) this;
        }

        public Criteria andContectNotLike(String value) {
            addCriterion("contect not like", value, "contect");
            return (Criteria) this;
        }

        public Criteria andContectIn(List<String> values) {
            addCriterion("contect in", values, "contect");
            return (Criteria) this;
        }

        public Criteria andContectNotIn(List<String> values) {
            addCriterion("contect not in", values, "contect");
            return (Criteria) this;
        }

        public Criteria andContectBetween(String value1, String value2) {
            addCriterion("contect between", value1, value2, "contect");
            return (Criteria) this;
        }

        public Criteria andContectNotBetween(String value1, String value2) {
            addCriterion("contect not between", value1, value2, "contect");
            return (Criteria) this;
        }

        public Criteria andContectAddressIsNull() {
            addCriterion("contect_address is null");
            return (Criteria) this;
        }

        public Criteria andContectAddressIsNotNull() {
            addCriterion("contect_address is not null");
            return (Criteria) this;
        }

        public Criteria andContectAddressEqualTo(String value) {
            addCriterion("contect_address =", value, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressNotEqualTo(String value) {
            addCriterion("contect_address <>", value, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressGreaterThan(String value) {
            addCriterion("contect_address >", value, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressGreaterThanOrEqualTo(String value) {
            addCriterion("contect_address >=", value, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressLessThan(String value) {
            addCriterion("contect_address <", value, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressLessThanOrEqualTo(String value) {
            addCriterion("contect_address <=", value, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressLike(String value) {
            addCriterion("contect_address like", value, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressNotLike(String value) {
            addCriterion("contect_address not like", value, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressIn(List<String> values) {
            addCriterion("contect_address in", values, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressNotIn(List<String> values) {
            addCriterion("contect_address not in", values, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressBetween(String value1, String value2) {
            addCriterion("contect_address between", value1, value2, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andContectAddressNotBetween(String value1, String value2) {
            addCriterion("contect_address not between", value1, value2, "contectAddress");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterionForJDBCDate("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterionForJDBCDate("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterionForJDBCDate("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}